package ro.ubbcluj.android.PhysiTrack;

import android.os.Handler;
import android.os.Message;
import android.widget.EditText;

public class UIHandler extends Handler{
	
	private EditText acc;
	private EditText vel;

	public UIHandler(EditText acc, EditText vel) {
		this.acc = acc;
		this.vel = vel;
	}
	
	//itt kell megadnia  seb+gyors ami megjelenika  feluleten
	@Override
	public void handleMessage(Message msg) {
		String[] values = msg.obj.toString().split(" ");
		acc.setText(values[0]);
		vel.setText(values[1]);
		super.handleMessage(msg);
	}
}
